<template>
	<div>
		<div v-if="kk==1"><good-list :goodId="1"></good-list></div>
		<div v-else-if="kk==2"><good-list :goodId="2"></good-list></div>
		<div v-else><good-list :goodId="0"></good-list></div>
	</div>
</template>

<script type="text/javascript">
	import Msg from './Msg.js'
	import GoodList from './goodsList.vue'
	export default {
		data(){
			return{
				kk:0
			}
		},
		mounted: function(){
			var _this=this
			Msg.$on('val',function(m){
				_this.kk=m
			})
		},
		components:{
			GoodList
		}
	}
</script>

<style>
</style>
